#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : lei.wang
from datetime import datetime
from pydantic import BaseModel, Field


class UserCreate(BaseModel):

    username: str = Field(default='', description='用户名')
    password: str = Field(default='', description='密码')
    birthday: str = Field(default='2000-01-03T16:00:00', description='生辰')
    gender: str = Field(default='男', description='性别')
    payload_id: str = Field(default='888888888888', description='用户标识')


class UserModelDetail(BaseModel):

    uuid: str
    birthday: str
    gender: str
    payload_id: str
    created_at: datetime
    updated_at: datetime
    is_deleted: bool


class UserUpdateBirthday(BaseModel):
    """用户生日更新模型"""
    birthday: str = Field(..., description='新的生日日期，格式如：2000-01-03T16:00:00')


class UserUpdateGender(BaseModel):
    """用户性别更新模型"""
    gender: str = Field(..., description='新的性别，如：男/女/其他')
